<?php

// NOT IN USE
class BaseModel extends \Eloquent 
{
    public function getColumnNames()
    {
        $connection = DB::connection();
        echo get_class($connection);
        $connection->getSchemaBuilder();
        
        $grammar = $connection->getSchemaGrammar();
        $table = $connection->getTablePrefix().$this->getTable();
        $results = $connection->select($grammar->compileColumnExists($table));
        return array_unique($connection->getPostProcessor()->processColumnListing($results));
    }
}
